﻿using System;
using System.Collections.Generic;
using System.Text;
using OpenCvSharp;

namespace FinallyVideoCaptureTest
{
    public class Frame
    {
        private int year = 0;
        public int Year {get { return year; }}

        private int month = 0;
        public int Month { get { return month; } }

        private int today = 0;
        public int Today { get { return today; } }

        private int hour = 0;
        public int Hour { get { return hour; } }

        private int minute = 0;
        public int Minute { get { return minute; } }

        private int seconds = 0;
        public int Seconds { get { return seconds; } }

        private DateTime captureTime;
        public DateTime CaptureTime
        {
            get { return captureTime; }
            set
            {
                captureTime = value;
                year = captureTime.Year;
                month = captureTime.Month;
                today = captureTime.Day;
                hour = captureTime.Hour;
                minute = captureTime.Minute;
                seconds = captureTime.Second;
            }
        }

        private string picSavePath = string.Empty;
        public string PicSavePath 
        {
            get { return picSavePath; }
            set
            { 
                picSavePath = value; 
                //if (this.CaptureImg !=null)
                //    this.CaptureImg.SaveImage(picSavePath);
            }
        }

        public int PersonInCount { get; set; }

        public int PersonOutCount { get; set; }
        //public IplImage CaptureImg { get; set; }
    }
}
